$.ajax({
    url: 'http://' + $.cookie("HostAddrIP") + '/jdcapi',
    async: false,
    data: JSON.stringify({
        jsonrpc: "2.0",
        id: 1,
        method: "call",
        params: [
            $.cookie("sessionid"),
            "uci",
            "get",
            {
                "config": "jd_plugin"
            }
        ]
    }),
    dataType: 'json',
    type: 'POST'
}).done(function (response) {
    let r = response.result[1].values
    let alertMessage = ''
    Object.values(r).forEach(e => {
        if (e.plugin_type === "aiec") {
            const outLog = '插件：' + e.pin + ", v" + e.version;
            console.log(outLog);
            alertMessage += outLog + "\n"
        }
    })
    alert(alertMessage)
})